package com.wyh.mapper.gfivemapper;

import com.wyh.domain.po.gfive.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
* @author KmJHHhhhR
* @description 针对表【user_role(用户角色表)】的数据库操作Mapper
* @createDate 2024-05-20 15:03:04
* @Entity com.wyh.domain.po.gfive.UserRole
*/
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    int saveUserRole  (List<UserRole> userRole);

    @Update("UPDATE user_role set state =0 WHERE userid = #{userid}")
    int stopUseRole(Integer userid);
}




